﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="KuaJing.Customs"
				        namespace="KuaJing.Customs.Domain">

  <class name="DeclarationItem" table="Customs_DeclarationItem">
    <id name="Id" access="field.camelcase" type="Int32" column="DeclarationItemId">
      <generator class="native" />
    </id>
    <version name="Version" access="field.camelcase" />

    <property name="ItemNumber" />
    <property name="GoodsNumber" />
    <property name="GoodsName" />
    <property name="GoodsSpecificationModel" />
    <property name="FirstGoodsQuantity" />
    <property name="FirstQuantityUnit" />
    <property name="SecondGoodsQuantity" />
    <property name="SecondQuantityUnit" />
    <property name="GoodsQuantity" />
    <property name="QuantityUnit" />
    <property name="DestinationlCountry" />
    <property name="DestinationCountryNumber" />
    <property name="GoodsPrice" />
    <property name="GoodsAmount" />
      <property name="Currency" />
    <property name="CurrencyName" />
    <property name="Tax" />
    <property name="Purpose" />


    <many-to-one name="Declaration" class="Declaration" column="DeclarationId" />

    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>
